package nowCoder;

import java.util.Scanner;

public class HJ57 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
        int jw = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < Math.max(a.length(),b.length()); i++) {
            char aa = i<a.length()?a.charAt(a.length() - i - 1):'0';
            char bb = i<b.length()?b.charAt(b.length() - i - 1):'0';
            int x = aa + bb + jw - 96;
            sb.append(x%10);
            jw = x/10;
        }
        if (jw > 0)
            sb.append(jw);
        System.out.println(sb.reverse());
    }
}
